package top.jle.wx.proxy.api;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import top.jle.wx.proxy.facade.BasicFacade;

import org.springframework.beans.factory.annotation.Autowired;

@RestController
@RequestMapping("/basic")
@Tag(name = "基础支持API")
public class BasicAPI {

    @Autowired
    private BasicFacade basicFacade;

    @Operation(summary = "获取AccessToken",operationId = "getAccessToken")
    @PostMapping("/getAccessToken")
    public ResponseBack<String> getAccessToken(){

        return ResponseBack.success(basicFacade.getAccessToken());
    }
}
